-- Zen Store Lua config

server = {
	dedicated = true,
	datadir = "d:\\ZenCacheShared",
	abslog = "d:\\local.log",
	debug = false,
	sentry = {
		allowpersonalinfo = true,
	}
}

network = {
	httpserverclass = "httpsys", -- httpsys|asio
	port = 8558,
}

gc = {
	intervalseconds = 28800, -- every 8 hour
	lightweightintervalseconds = 3600, -- every hour
	cache = {
		maxdurationseconds = 864000, -- 10 days
	}
}

cache = {
	enable = true,
	accesslog = false,
	upstream = {
		upstreamthreadcount = 4,
		policy = "disabled", -- readwrite|readonly|writeonly|disabled
		jupiter = {
			name = "DefaultJupiterInstance",
			url = "{{upstream_url}}",
			oauthprovider = "{{upstream_auth_server}}",
			oauthclientid = "{{upstream_client_id}}",
			oauthclientsecret = "{{upstream_auth_token}}",
			namespace = "ue.ddc",
			ddcnamespace = "ue.ddc",
		}
	},
	memlayer = {
		targetfootprint = 1073741824, -- 1 GB
		triminterval = 120, -- max every 2 minutes
		maxage = 172800, -- 2 days
	}
}
